package com.sport.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sport.entity.dto.Option;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;
import java.util.List;
import java.util.Objects;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_user")
public class SysUser extends BaseEntity{

    @Schema(title = "用户名",description = "登录账号")
    private String username;
    @Schema(description = "密码")
    private String password;
    @Schema(hidden = true)
    private String slat;
    @Schema(title = "性别",description = "0男1女2未知")
    private Integer sex;
    @Schema(description = "昵称")
    private String nickname;
    @Schema(description = "电话")
    private String phone;
    @Schema(description = "邮箱")
    private String email;
    @Schema(description = "头像")
    private String avatar;
    @Schema(description = "微信小程序标识")
    private String openid;
    @TableField(exist = false)
    @Schema(description = "角色列表")
    private List<Option> roles;

}
